package cn.tedu.product.pojo.dto;


import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class ProductAddDTO {
    @NotBlank(message = "产品名称不能为null")
    private String name;
    @NotBlank(message = "产品价格不能为null")
    private Double price;
    @NotNull(message = "产品库存不能为null")
    private Integer stock;
    @NotBlank(message = "产品描述不能为null")
    private String description;
}
